<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title> onmousedown</title>
    <script>
    var  onmousedown=function(){
        document.getElementById("p1").style.color="red";
    }
    function bigImg(x)
{
x.style.height="180px";
x.style.width="180px";
}

    </script>
</head>
<body>
    <p id="p1"  onmousedown="onmousedown" onmousemove="bigImg(this)" >改变颜色</p>
    
</body>
</html>